package com.daikit.daikit4gxt.server.generation;

import com.daikit.daikit4gxt.client.editor.DkBeanEditorDelegate;
import com.daikit.daikit4gxt.client.editor.DkBeanEditorDriver;
import com.daikit.daikit4gxt.client.editor.DkSimpleBeanEditorDriver;
import com.google.gwt.editor.rebind.AbstractEditorDriverGenerator;
import com.google.gwt.editor.rebind.model.EditorData;


/**
 * Driver Generator
 * 
 * @author tcaselli
 * @version $Revision$ Last modifier: $Author$ Last commit: $Date$
 */
public class DkBeanEditorDriverGenerator extends AbstractEditorDriverGenerator
{
	@Override
	protected Class<?> getDriverInterfaceType()
	{
		return DkSimpleBeanEditorDriver.class;
	}

	@Override
	protected Class<?> getDriverSuperclassType()
	{
		return DkBeanEditorDriver.class;
	}

	@Override
	protected Class<?> getEditorDelegateType()
	{
		return DkBeanEditorDelegate.class;
	}

	@Override
	protected String mutableObjectExpression(final EditorData data, final String sourceObjectExpression)
	{
		return sourceObjectExpression;
	}
}
